package com.wayne.pojo;

import java.io.Serializable;
import java.util.List;

public class User implements Serializable {
  private Integer id;
  private String username;
  // 代表当前用户具有哪些订单
  private List<Order> orderList;
  // 代表当前用户具有哪些角色
  private List<Role> roleList;

  @Override
  public String toString() {
    return "User{" +
        "id=" + id +
        ", username='" + username + '\'' +
        ", orderList=" + orderList +
        ", roleList=" + roleList +
        '}';
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  public List<Order> getOrderList() {
    return orderList;
  }

  public void setOrderList(List<Order> orderList) {
    this.orderList = orderList;
  }

  public List<Role> getRoleList() {
    return roleList;
  }

  public void setRoleList(List<Role> roleList) {
    this.roleList = roleList;
  }
}
